package com.suyuan.service.impl;

import com.suyuan.dao.ProducetypeInfoMapper;
import com.suyuan.entity.ProducetypeInfo;
import com.suyuan.entity.ProducetypeInfoExample;
import com.suyuan.service.ProducetypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品类型
 */
@Service(value = "producetypeService")
@Transactional
public class ProducetypeServiceImpl implements ProducetypeService {
    @Resource
    private ProducetypeInfoMapper producetypeInfoMapper;

    public List<ProducetypeInfo> findAll() {
        return producetypeInfoMapper.selectByExample(new ProducetypeInfoExample());
    }
}
